FrameLib  2.0
DSP processing with frames of arbitrary timing and length
FrameLib_LocalAllocator Class Reference

a memory allocator suitable for usage in a given FrameLib context. More...

#include <FrameLib_Memory.h>

Classes

class  Storage
 named storage local to a specific context. More...
 

Public Member Functions

 FrameLib_LocalAllocator (FrameLib_GlobalAllocator *allocator)
 
 ~FrameLib_LocalAllocator ()
 
 FrameLib_LocalAllocator (const FrameLib_LocalAllocator &)=delete
 
FrameLib_LocalAllocatoroperator= (const FrameLib_LocalAllocator &)=delete
 
void * alloc (size_t size)
 
void dealloc (void *ptr)
 
void clear ()
 
StorageregisterStorage (const char *name)
 
void releaseStorage (const char *name)
 

Static Public Member Functions

static size_t getAlignment ()
 
static size_t alignSize (size_t x)
 

Detailed Description

a memory allocator suitable for usage in a given FrameLib context.

See also
FrameLib_Context

Constructor & Destructor Documentation

◆ FrameLib_LocalAllocator() [1/2]

FrameLib_LocalAllocator::FrameLib_LocalAllocator ( FrameLib_GlobalAllocator allocator)

◆ ~FrameLib_LocalAllocator()

FrameLib_LocalAllocator::~FrameLib_LocalAllocator ( )

◆ FrameLib_LocalAllocator() [2/2]

FrameLib_LocalAllocator::FrameLib_LocalAllocator ( const FrameLib_LocalAllocator )
delete

Member Function Documentation

◆ alignSize()

static size_t FrameLib_LocalAllocator::alignSize ( size_t  x)
inlinestatic

◆ alloc()

void * FrameLib_LocalAllocator::alloc ( size_t  size)

◆ clear()

void FrameLib_LocalAllocator::clear ( )

◆ dealloc()

void FrameLib_LocalAllocator::dealloc ( void *  ptr)

◆ getAlignment()

static size_t FrameLib_LocalAllocator::getAlignment ( )
inlinestatic

◆ operator=()

FrameLib_LocalAllocator& FrameLib_LocalAllocator::operator= ( const FrameLib_LocalAllocator )
delete

◆ registerStorage()

FrameLib_LocalAllocator::Storage * FrameLib_LocalAllocator::registerStorage ( const char *  name)

◆ releaseStorage()

void FrameLib_LocalAllocator::releaseStorage ( const char *  name)

The documentation for this class was generated from the following files: